@extends('admin.inc.base')
@section('content')
   <table class="table">
       <tr>
           <th>序号</th>
           <th>标题</th>
           <th>创建时间</th>
           <th>更新时间</th>
           <th>操作</th>
       </tr>
       @foreach($data as $key => $post)
       <tr>
           <td>{{ $key }}</td>
           <td>{{ $post -> title }}</td>
           <td>{{ $post -> created_at }}</td>
           <td>{{ $post -> updated_at }}</td>
           <td><a href="/admin/post/{{ $post ->id }}/edit">编辑</a>&nbsp;<a href="/admin/post/{{ $post ->id }}/delete">删除</a></td>
       </tr>
       @endforeach
   </table>

@endsection